 let baseUrl = 'http://www.itcbc.com:8080';
 // let baseUrl = 'http://localhost:3000';
 $.ajaxPrefilter(function(option) {
     option.url = baseUrl + option.url;
     option.complete = function(xhr) {
         let res = xhr.responseJSON;



         if (res && res.status === 1) {
             // alert(res.message);
             layer.msg(res.message);
             if (res.message === '身份认证失败') {
                 localStorage.removeItem('token');
                 location.href = './login.html';
             }
         }
     }
     option.headers = {
         Authorization: localStorage.getItem('token'),
     }
 });